package me.a_littlesquid.origin.items;

import org.bukkit.Material;
import org.bukkit.attribute.AttributeModifier;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;

import static org.bukkit.attribute.Attribute.GENERIC_ATTACK_DAMAGE;
import static org.bukkit.attribute.AttributeModifier.Operation.ADD_NUMBER;

public class qs {
    public static ItemStack getaxe(){
        AttributeModifier attributeModifier=new AttributeModifier("generic.attack_damage",10,ADD_NUMBER);
        ItemStack axe=new ItemStack(Material.DIAMOND_AXE);
        ItemMeta meta= axe.getItemMeta();
        meta.addAttributeModifier(GENERIC_ATTACK_DAMAGE,attributeModifier);
        meta.setUnbreakable(true);
        axe.setItemMeta(meta);
        return axe;
    }
}
